﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kryptonalysis.Rank
{
    /// <summary>
    /// Class to hold the frequency-rank of a sign. 
    /// </summary>
    public class LetterRank
    {
        #region Member
        protected int _Rank;
        protected char _Sign;
        #endregion

        #region Properties
        /// <summary>
        /// Gets the rank.
        /// </summary>
        /// <value>The rank.</value>
        public int Rank
        {
            get { return _Rank; }
        }

        /// <summary>
        /// Gets the sign.
        /// </summary>
        /// <value>The sign.</value>
        public char Sign
        {
            get { return _Sign; }
        }
        #endregion

        #region Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="LetterRank"/> class.
        /// </summary>
        /// <param name="rank">The rank.</param>
        /// <param name="sign">The sign.</param>
        public LetterRank(int rank, char sign)
        {
            _Rank = rank;
            _Sign = sign.ToString().ToUpper().ToCharArray()[0];
        }
        #endregion
    }
}
